#include <windows.h>
#include "simplecontainer.h"

// -- the thread process
DWORD WINAPI WriteToBuffer(LPVOID);

// --  main thread process
void MainThread(SimpleContainer& container, Display& display);
// -- main thread refresh
void MainThreadRefresh(SimpleContainer& container);
// -- reset the tickets
void ResetTicket(SimpleContainer* container, uint numcontainers);
// -- reset refresh tickets
void ResetRefresh(SimpleContainer* container, uint numcontainers);
// -- check to see if the threads are finished
bool CheckFinished(SimpleContainer* containers, uint numcontainers);
// -- check to see if the refresh is finished in all threads
bool CheckRefreshFinished(SimpleContainer* containers, uint numcontainers);
// -- the main process